package _3静态内部类;

public class Outter 
{
	// 实例成员变量
	String name = "Outter.name";
	// 静态成员变量
	static String name2 = "Outter.name2";

	
	// 静态内部类 (用static修饰)
	public static class Inner
	{
		// 实例成员变量
		String name = "Inner.name";
		// 静态成员变量
		static String name2 = "Inner.name2";
		
		public void foo()
		{
			String name = "tmp name";
			
			System.out.println(name);// tmp name
			System.out.println(this.name);// Inner.name
			System.out.println(Inner.name2);// Innter.name2
			
//			System.out.println(Outter.this.name);// 报错
			System.out.println(Outter.name2);
		}
		
	}
}
